package com.kmu.yss.entity;

import java.util.Objects;
import java.util.Set;

public class StudentInformationDetail {
    private int id;
    private String studentNo;
    private String studentName;
    private Byte gender;
    private String birthday;
    private Integer totalScore;
    private String remark;
    private Set<CourseDetail> course;
    private MajorDetail majorDetail;

    public MajorDetail getMajorDetail() {
        return majorDetail;
    }

    public void setMajorDetail(MajorDetail majorDetail) {
        this.majorDetail = majorDetail;
    }

    public Set<CourseDetail> getCourse() {
        return course;
    }

    public void setCourse(Set<CourseDetail> course) {
        this.course = course;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getStudentNo() {
        return studentNo;
    }

    public void setStudentNo(String studentNo) {
        this.studentNo = studentNo;
    }

    public String getStudentName() {
        return studentName;
    }

    public void setStudentName(String studentName) {
        this.studentName = studentName;
    }

    public Byte getGender() {
        return gender;
    }

    public void setGender(Byte gender) {
        this.gender = gender;
    }

    public String getBirthday() {
        return birthday;
    }

    public void setBirthday(String birthday) {
        this.birthday = birthday;
    }

    public Integer getTotalScore() {
        return totalScore;
    }

    public void setTotalScore(Integer totalScore) {
        this.totalScore = totalScore;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        StudentInformationDetail that = (StudentInformationDetail) o;
        return id == that.id && Objects.equals(studentNo, that.studentNo) && Objects.equals(studentName, that.studentName) && Objects.equals(gender, that.gender) && Objects.equals(birthday, that.birthday) && Objects.equals(totalScore, that.totalScore) && Objects.equals(remark, that.remark);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, studentNo, studentName, gender, birthday, totalScore, remark);
    }
}
